home *** CD-ROM | disk | FTP | other *** search
/ C/C++ Users Group Library 1996 July / C-C++ Users Group Library July 1996.iso / vol_200 / 287_02 / mprt.txt < prev    next >
Text File  |  1989-05-23  |  768b  |  31 lines

  1.      The following GRAD commands
  2.  
  3.         HorzLine([C9],[L13],300,1);
  4.         SetStyle(0x3333);
  5.         HorzLine([C9],[L13,10],300,1);
  6.         SetStyle(0);
  7.         HorzLine([C9],[L13,20],300,1);
  8.         SetStyle(0x11ff);
  9.         HorzLine([C9],[L13,30],300,1);
  10.  
  11. produce the following results:
  12.  
  13.  
  14.  
  15.  
  16.  
  17.  
  18.     To create a pie chart is very simple too.
  19.        SetStyle(0xffff);
  20.        Earc2(170,50,83,50,100,270);
  21.        ArcPoint(&x1,&y1,&x2,&y2);
  22.        Line(x1,y1,170,50);
  23.        Line(170,50,x2,y2);
  24.        Earc2(178,45,83,50,10,90);
  25.        ArcPoint(&x1,&y1,&x2,&y2);
  26.        Line(x1,y1,178,45);
  27.        Line(178,45,x2,y2);
  28.        PatternFill(160,50,pattern1,0);
  29.        PatternFill(190,30,pattern2,0);
  30.  
  31.